<?php

/**
 * TransportType form.
 *
 * @package    jobeet
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class TransportTypeForm extends BaseTransportTypeForm
{
 static $multiLangFields = array('name' => array('title' => 'Nimi'));

  public function configure(){

  	$this->setI18Languages();
	$this->widgetSchema['min_weight'] = new sfWidgetFormInput(array(), array('disabled' => 'true', 'readonly'=>'readonly'));
	$this->widgetSchema['max_weight'] = new sfWidgetFormInput(array(), array('disabled' => 'true', 'readonly'=>'readonly'));
  }

  public function setI18Languages(){
  	$this->embedI18n($this->getLanguages());
  }

  public function getLanguages(){
  	return array('et','en');
  }
}
